package com.steel.yfmall.cloud.assistant.oms.impl;

import com.steel.yfmall.cloud.assistant.oms.MasterOrderInvoiceApplyService;
import com.steel.yfmall.cloud.assistant.oms.mapper.MasterOrderInvoiceApplyMapper;
import com.steel.yfmall.cloud.assistant.po.oms.MasterOrderInvoiceApply;
import com.steel.yfmall.cloud.assistant.po.oms.MasterOrderInvoiceApplyExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 龙飞
 * @version 1.0
 * @since 2021/01/08 星期五 15:47
 */

@Service
public class MasterOrderInvoiceApplyServiceImpl implements MasterOrderInvoiceApplyService {
    @Override
    public MasterOrderInvoiceApply selectOneByInvoiceApplyOrderSn(String invoiceApplyOrderSn) {
        MasterOrderInvoiceApplyExample example = new MasterOrderInvoiceApplyExample();
        example.createCriteria().andInvoiceApplyOrderSnEqualTo(invoiceApplyOrderSn);
        return masterOrderInvoiceApplyMapper.selectOneByExampleSelective(example);
    }

    @Resource
    private MasterOrderInvoiceApplyMapper masterOrderInvoiceApplyMapper;
}
